 /**
 * 子模块路由
 * DHpai
 */

var router = function($urlRouterProvider, $stateProvider){


 	$stateProvider


    //用户列表
    .state('app.userList', {
        url: "/user/userlist",
        views: {
            'main@' : {
                template : require('./views/user.html'),
                controller : 'userList',
            }
        },
        resolve:{
            tableconfig : function(tableservice){
                return tableservice.tableconfig();
            },
            transData : function(utilservice){
                return utilservice.transData;
            },
            officeList : function(userservice){
                return userservice.officeList();
            },
            userList : function(userservice){
                return userservice.userList();
            },
            userInfo : function(userservice){
                return userservice.userInfo();
            },
            addUser : function(userservice){
                return userservice.addUser();
            },
            setUserInfo : function(userservice){
                return userservice.setUserInfo();
            },
            roleList : function(userservice){
                return userservice.roleList();
            },
           
        }
    })


	;

};

module.exports = router;